home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / prog_disc / volume_3 / issue02 / info / statistic < prev    next >
Encoding:
Text File  |  1989-10-04  |  5.4 KB  |  122 lines

  1.  
  2. EDITOR  
  3.  
  4. This is basically an editor for numerical data to be used in various 
  5. statistical analysis programs. The core of the program comprising of a 
  6. setting up routine (PROCinit), a dimensioning procedure (PROCdim) the I/O 
  7. module (PROCinput, PROCsave) and the display/amend unit (PROCdisp) may be 
  8. attached, in the form of procedures, to any of your own favourite number 
  9. crunching programs and then allows you to utilise the versatile editing 
  10. features of this system for data entry and checking and amendment. The 
  11. system is not disc-based so is ultimately limited by memory size but this 
  12. is unlikely to be a problem on an Archimedes. As set-up it has room for 
  13. about 2600 numbers but could deal with more by changing the value of 
  14. 'arraysize%'. 
  15.  
  16. A standard file form is used consisting of a string containing a 
  17. description, an integer giving the length (no. of data) then the numbers 
  18. in BBC basic floating point numerical form. This file form allows 
  19. user-friendly error checking by the IO routine and gives information about 
  20. the contents in text form. 
  21.  
  22. On entry you can choose the display data format, the disc no. the pathname 
  23. with defaults given by return. You may also use the 'missing number' 
  24. option which allows structured data with dummy entries for missing data. 
  25. As written, numbers less than .001 are dummies (but it is easily changed). 
  26. Small values are better than zero because they are less likely to give 
  27. math errors with software which is not written to anticipate missing 
  28. values. With this option switched off all data, including zero or negative 
  29. numbers, will be processed. 
  30.  
  31. The processing menu is as follows: 
  32.  
  33.  MAIN MENU Enter:-  
  34.   
  35.  1....To input data from keyboard  
  36.  2....To input an existing disc file (standard format files only)  
  37.  3....To save the file to disc     (in either standard format or plain FP) 
  38.  4....To display the current file  
  39.  5....To hardcopy the file to printer  
  40.  6....To call the file editor  
  41.  7....To calc stats on the current file  
  42.  8....To make an OS call  
  43.  9....To use a serial printer  
  44.  :....To change disk no. or pathname  
  45.  ;....To finish 
  46.  
  47. This is all fairly self evident and should require little explanation. The 
  48. escape key or error handler will usually rescue you from sillies. 
  49.  
  50. On taking option 6 an editor menu is provided as follows: 
  51.  
  52. EDITOR MENU  Enter:-  
  53.   
  54.  1.....To amend existing values  
  55.  2.....To delete existing values  
  56.  3.....To insert values  
  57.  4.....To add data to the end of file  
  58.  5.....To modify all data by a factor  
  59.  6.....Load from plain BBC FP data file  
  60.  7.....Load from an ASCII file  
  61.  8.....To make OS call  
  62.  9.....To return to main menu  
  63.  
  64. An import routine from simple BBC FP number files is provided in the 
  65. editor menu and a complementary save in simple BBC number format is 
  66. provided as an option in the save routine. 
  67.  
  68. Further an input routine from ASCII spool files is provided in the file 
  69. editor. Spool files can be generated simply by software such as 
  70. spreadsheets, databases and wordprocessors and can be input directly 
  71. provided not more than two different data separators bytes are used eg 
  72. comma and carriage return or the record and field separators in a 
  73. database. Some database datafiles may be inputtable directly into this 
  74. routine or via spool files. 
  75.  
  76. There is a simple mean standard deviation etc. routine which can work on 
  77. the whole file or in user defined blocks (eg every 10). 
  78.  
  79. Simple editing of single items is provided in the editor section as amend, 
  80. delete, insert, apend functions. There is also a global factoring routine 
  81. of the form 'add 24 to all values etc.'. Block editing is carried out 
  82. using the IO routine which can load any number of values in as many blocks 
  83. as you require from anywhere within one or more existing files.  
  84.  
  85. OS (star) calls are provided in both menus to allow cataloguing of disks 
  86. etc.  
  87.  
  88. If you require an ASCII output of any of the files or results just call 
  89. the OS routine and *SPOOL 'filename' before starting an operation then 
  90. call OS and close the file after completion (with *close or *spool). 
  91.   
  92. The original version was written for a very crude basic on a tape storage 
  93. system. This was improved for the BBC-B/DFS and has been improved again 
  94. for the Archimedes/ADFS. I have, however, retained the mode 7 operation so 
  95. it should still operate in BBC series machines with ADFS with minor 
  96. modifications.  
  97.  
  98. ANALYSES OF VARIANCE, ANOV1, ANOV2, ANOV3 
  99.  
  100. These are provided as a demonstration of the use of the common I/O module 
  101. attached to a number processing program. Some modifications have to be 
  102. made but broadly it is identical to that in the editor but with only the 
  103. basic I/O and display/amend routines provided. If you do not know what the 
  104. programs are for I suggest you read 'Facts from figures' by M.J.Moroney or 
  105. another simple introduction to statistics. For those that wish to use them 
  106. I would stress that the order of processing is down columns not along 
  107. rows! 
  108.  
  109. PROCS 
  110.  
  111. This is an exec file of the program from 10000 - 13000 containing the 
  112. basic procedures. If *execed it will add on to an existing program 
  113. (provided the line numbers don't overlap). Calls to the procedures also 
  114. have to be added to the beginning of the existing program see ANOV1 for 
  115. example. 
  116.  
  117. OPERATION UNDER RISCOS DESKTOP 
  118.  
  119. Simply click on filing system icon, find appropriate directory and click 
  120. on program icon. This will run the program but not multitasked. When 
  121. finished return to desktop which should be as you left it.  
  122.